package com.cskaoyan.wxcontroller;

import com.cskaoyan.bean.baseresultVO.BaseData;
import com.cskaoyan.bean.baseresultVO.BaseParam;
import com.cskaoyan.bean.baseresultVO.BaseRespVo;
import com.cskaoyan.service.IssueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: zhiMing
 * @date: 2021年12月4日 10点02分
 */
@RestController
@RequestMapping("/wx/issue")
public class WxIssueController {

    @Autowired
    IssueService issueService;

    @GetMapping("list")
    public BaseRespVo<BaseData> list(BaseParam baseParam) {
        BaseData baseData = issueService.getList(baseParam, null);
        return BaseRespVo.ok(baseData);
    }
}
